﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Model;
using SDT.Lib.Common;
using SDT.Lib.Paging;
using System.Web.Mvc;
namespace SDT.Admin.ViewModels
{
    public class CompanyIndexViewModel
    {
        public IPagedList<Company> Companies;
        public List<City> Cities {get;set;}
        public List<District> Districts { get; set; } 
        public Company Company{get;set;}
		public string Keyword;
		public Dictionary<object, object> ListActivityYN = new Dictionary<object, object>();
		public int CurrentActivityYN { get; set; }
        public List<CompanyType> CompanyTypes { get; set; }
        public string ImageRootUrl { get; set; }
        private List<SelectListItem> _listCity = new List<SelectListItem>();
        public List<SelectListItem> ListCity
        {
            get
            {
                return this._listCity;
            }
            set
            {
                if (value != null)
                    this._listCity = value;
            }
        }
        private List<SelectListItem> _listDistrict = new List<SelectListItem>();
        public List<SelectListItem> ListDistrict
        {
            get
            {
                return this._listDistrict;
            }
            set
            {
                if (value != null)
                    this._listDistrict = value;
            }
        }
    }
    public class CompanyEditViewModel
    {
        public Company Company { get; set; }
        public List<City> Cities = new List<City>();
        public List<District> Districts { get; set; }
        public List<CompanyType> CompanyTypes { get; set; }
        public string ImageRootUrl { get; set; }
        public List<CompanyTypeMap> CompanyTypeMaps { get; set; }
        private List<SelectListItem> _listCity = new List<SelectListItem>();
        public List<SelectListItem> ListCity
        {
            get
            {
                return this._listCity;
            }
            set
            {
                if (value != null)
                    this._listCity = value;
            }
        }
        private List<SelectListItem> _listDistrict = new List<SelectListItem>();
        public List<SelectListItem> ListDistrict
        {
            get
            {
                return this._listDistrict;
            }
            set
            {
                if (value != null)
                    this._listDistrict = value;
            }
        }
    }
}
